package cn.qin.xhangapi.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.qin.xhangapi.pojo.SysUsers;
import cn.qin.xhangapi.dao.SysUsersMapper;
import cn.qin.xhangapi.service.SysUsersService;

import javax.annotation.Resource;

@Service
public class SysUsersServiceImpl extends ServiceImpl<SysUsersMapper, SysUsers> implements SysUsersService{
    @Resource
    private SysUsersMapper sysUsersMapper;
    @Override
    public SysUsers getByIdWithRelation(Long id) {
        return sysUsersMapper.getByIdWithRelation(id);
    }

    @Override
    public Page<SysUsers> getSysUserList(Page<SysUsers> page, QueryWrapper<SysUsers> wrapper) {
        return sysUsersMapper.getSysUserList(page, wrapper);
    }
}
